package com.zzw.paymentdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Map;

/**
 * @author zzw
 * @date 2023/5/11 16:33
 */
public interface WxPayService {
    Map<String, Object> nativePay(Long productId) throws Exception;

    void processOrder(Map<String,Object> bodyMap) throws GeneralSecurityException;

    void cancelOrder(String orderNo) throws IOException;

    void checkOrderStatus(String orderNo) throws Exception;

    void refunds(String orderNo, String reason) throws Exception;

    void processRefund(Map<String, Object> bodyMap) throws Exception;
}
